﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;
namespace ChurchEdu.Models
{
    public class CreateCategory
    {
        [Required]
        [Display(Name = "一级标签")]
        public string FirstLevelCategoryName { get; set; }

    }

    public class EditCategory
    {
        public int ID { get; set; }
        public int parentid { get; set; }

        [Required]
        [Display(Name = "名称")]
        public string CategoryName { get; set; }


    }


    public class Categorylist
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public int ParentID { get; set; }

    }


    public class Categoryleft 
    {
        public Categorylist categoryparent { get; set; }
        public List<Categorylist> categorychild{ get; set; }
        public Categoryleft()
        {
            categoryparent = new Categorylist();
            categorychild = new List<Categorylist>();
    
           }
    
    }

}